/*
package chapter06

/**
  * create by undeRdoG on  2021-06-02  13:55
  * 凡心所向，素履以往，生如逆旅，一苇以航。
  */
object Test14_TraitMixin {

  def main(args: Array[String]): Unit = {
    val student = new Student14

    student.increase()

    student.dating()

  }
}



// 定义一个特质
trait knowledge{
  var amount: Int = 0

  def increase(): Unit

}


class Student14 extends Person13 with knowledge with young {
  override def increase(): Unit = {
    amount += 1
    println(s"student $name knowledge amount is $amount")
  }
  override def dating(): Unit = println(s"student $name is dating")
}*/
